const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false,
    devServer: {
        port: process.env.PORT,
        proxy: {
            '/api': {
                // 修改这个目标服务代理
                target: process.env.VUE_PROXY,
                changeOrigin: true,
                pathRewrite: { '^/api': '' }
            }
        }
    }
})